﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Homework12.Models
{
    public class Goods
    {
        public string Name;
        public double UnitPrice;
        public Goods() { }
        public Goods(string name, double price)
        {
            this.Name = name;
            this.UnitPrice = price;
        }
        public override string ToString()
        {
            return Name + " " + UnitPrice + "yuan/kg ";
        }
    }
}